package service.impl;

import dao.ICategoryDao;
import dao.impl.CategoryDaoImpl;
import pojo.Category;
import service.ICategoryService;

import java.util.List;

public class CategoryServiceImpl implements ICategoryService {
    private final ICategoryDao categoryDao=new CategoryDaoImpl();
    /**
     * 查询所有商品种类
     *
     * @return List<Category>
     */
    @Override
    public List<Category> queryAllCategories() {
        return categoryDao.queryAllCategories();
    }
}
